<?php
defined( '_JEXEC' ) or die( 'Restricted access' );

jimport( 'joomla.application.component.view' );


class AuctionViewEdit  extends JView
{
	function display($tpl = null)
	{
		$model = $this->getModel('Edit','AuctionModel');
		$auction = $model->getData();
		$itemOpt = $model->getOptCar($auction->product_id);
		JToolBarHelper::title( JText::_( 'Update auction' ) );

		JToolBarHelper::save();
		JToolBarHelper::apply('apply', 'apply');
		JToolBarHelper::cancel( 'cancel', 'close' );
		
		$this->assignRef('auction', $auction);
		$this->assignRef('itemOpt', $itemOpt);
		
		parent::display($tpl);
	}
}